/* css */
*{
    margin: 0;
    padding: 0;
}
.index{
    background-color: #2e2e2e;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.switch{
    position: relative;
    display: inline-block;
    height: 48px;
    width: 75px;
    display: flex;
    justify-content: center;
}
.switch input{
    opacity: 0;
}
span{
    position: absolute;
    cursor: pointer;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background-color: #202020;
    transition: .5s;
    border-radius: 30px;
}
span::before{
    position: absolute;
    content: "";
    height: 30px;
    width: 30px;
    border-radius: 50%;
    left: 10%;
    top: 10px;
    box-shadow: inset 8px -4px 0 0 #ffd500;
    transition: .5s;
    background-color: #202020;
}
input:checked+span{
    background-color: #202020;
}
input:checked+span::before{
    transform: translateX(100%);
    box-shadow: inset 15px -4px 0 15px #ffd500;
}